{include file="./public/footer" /}
{include file="./public/menu" /}
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/admin.php">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">订单管理</span></div>
    </div>
    <div class="search-wrap">
        <div class="search-content">
            <form action="/admin.php/order/lists" method="post">
                <table class="search-tab">
                    <tr>
                        <th width="120">开始日期:</th>
                        <td>
                            <input type="text" onclick="fPopCalendar(event,this,this)" readonly="readonly" name="start_time" value="{$starTime}">
                        </td>
                        <th width="120">结束日期:</th>
                        <td>
                            <input type="text" onclick="fPopCalendar(event,this,this)" readonly="readonly" name="end_time" value="{$endTime}">
                        </td>
                        <th width="70">手机号:</th>
                        <td><input class="common-text" placeholder="手机号" name="key_word" value="{$key_word}"  type="text"></td>
                        <td><input class="btn btn-primary btn2" type="submit"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="result-wrap">
        <form  id="andy_sort">
            <div class="result-title">
                <div class="result-list">
                    <!--<button type="button" id="button_add" ><i class="icon-font"></i>新增商品</button>-->
                    <!--<button type="button" id="button_sort"><i class="icon-font"></i>更新排序</button>-->
                </div>
            </div>
            <div class="result-content">
                <table class="result-tab andycms-table" width="100%">
                    <tr >
                        <th>ID</th>
                        <th>订单号</th>
                        <th>手机号</th>
                        <th>商品名称</th>
                        <th>出发人</th>
                        <th>状态</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                    {volist name="res" id="r"}
                        <tr style="text-align: center;">

                            <td>{$r.order_id}</td>
                            <!--<td ><a target="_blank" href="#" style="display:block;height:30px;width:50px;overflow: hidden;text-overflow: ellipsis;white-space:nowrap;">{$r.order_code}</a></td>-->
							<td ><a>{$r.order_code}</a></td>
                            <td>{$r.phone}</td>
                            <td><a target="_blank" href="#" style="display:block;height:30px;overflow: hidden;text-overflow: ellipsis;white-space:nowrap;">{$r.title}</a></td>
                            <td>{$r.name}</td>
                            <td><span attr-id="{$r.order_id}" id="andycms-on-off" {if ($r.order_status eq 2)}attr-status="3"{else \}attr-status="{$r.order_status}"{/if}>{$r.order_status|getOrderStatus}</span></td>
                            <td>{$r.update_time|date="Y-m-d H:i:s",###}</td>
                            <td>
                                <!--<a href="#"><span onclick="edit.click(this)" attr-id="{$r.order_id}" >退款</span></a>-->
                                <a href="#"><span onclick="del.click(this)" attr-id="{$r.order_id}" attr-msg="删除" attr-a="order">删除</span></a>
                            </td>
                        </tr>
                    {/volist}
                </table>
            </div>
            {$res->render()}
        </form>
    </div>
</div>
<script>
    var SCOPE = {
        'edit_url' : '/admin.php/order/edit',
        'set_status_url' : '/admin.php/order/setStatus',

    };
</script>
<!--/main-->
{include file="./public/bottom" /}